// 引入request接口文件
import request from '@/utils/request'
// 简化路径
const api_name = '/admin/product';

export default {
    // 获取一级商品信息接口
    getCategory1(){
        return request.get(`${api_name}/getCategory1`)
    },
    // 获取二级商品信息接口
    getCategory2(category1Id){
        return request.get(`${api_name}/getCategory2/${category1Id}`)
    },
    // 获取三级商品信息接口
    getCategory3(category2Id){
        return request.get(`${api_name}/getCategory3/${category2Id}`)
    },
}
